package com.atguigu.lease;

import com.atguigu.lease.common.minio.MinioConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * projectName: com.atguigu.lease
 *
 * @author: 赵伟风
 * description:
 */

/*
  自己的配置类，误被springboot导入了！如何排除！

    1. 少了配置类核心参数，我们就添加参数 【一定使用配置类】
    2. 可以排除配置类，不让他生效 [一定不用]
        @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) [springboot的自动配置类]
        @ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = MinioConfiguration.class))
    3. 可能用 满足我们配置minio的参数就会使用
        @ConditionalOnProperty(prefix = "minio", name = "username")
 */

//@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = MinioConfiguration.class))
@SpringBootApplication
public class AppWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(AppWebApplication.class, args);
    }
}
